class ResultEntity {
  String error_code, msg;
  dynamic data;

  ResultEntity.fromJson(dynamic json) {
    if (json != null && json is Map) {
      error_code = json['error_code'];
      msg = json['msg'];
      if (msg == null && json.containsKey('message')){
        msg = json['message'];
      }
      dynamic _data = json['data'];
      if (_data is! List || (_data as List).length > 0) {
        data = _data;
      }
    }
  }
}
